import http from '../../utils/httpsz.js'

/**
 * 请求名称 用请求地址的最后一个‘/’后面的单词命
 * 调用  import {getAPI,postAPI,putAPI,deleteAPI} from '@/api/TestSz.js/'
 *
 * 请求 then 返回正确  err 错误返回
 *   getAPI()
 *                 .then(res=>{
 *                     console.log(res)
 *                 })
 *                 .catch(err=>{
 *
 *                 })
 */
export function resettest(params){
    return http.post(`/project/review/reset-test`,params)
}
// get请求
export function myreview(params){
    return http.get(`/project/review/my-review`,params)
}
export function reviewdetails(params){
    return http.get(`/project/review/review-details`,params)
}
export function sumbitreviewdetails(params){
    return http.post(`/project/review/review-details`,params)
}
export function submit(params){
    return http.post(`/project/review/submit`,params)
}
export function refuse(params){
    return http.post(`/project/review/refuse`,params)
}
export function download(params){
    return http.get(`/commonFile/download`,params)
}


/*请求名称 用请求地址的最后一个‘/’后面的单词命*/
// get请求
export function getAPI(params){
    return http.get(`/project/review/my-review`,params)
}
//post 请求
export function postAPI(params){
    return http.post(`/postAPI`,params)
}
// put 请求
export function putAPI(params){
    return http.put(`/putAPI`,params)
}
// delete 请求
export function deleteAPI(params){
    return http.delete(`/deleteAPI`,params)
}
